.container {
  min-height: 100vh;
  background-color: #f5f5f5;
  display: flex;
  flex-direction: column;
}

.header {
  background-color: #fff;
  padding: 12px 16px;
  border-bottom: 1px solid #f0f0f0;
  position: sticky;
  top: 0;
  z-index: 100;
  
  .searchBar {
    background-color: #f8f9fa;
    border-radius: 20px;
    margin-bottom: 8px;
    
    :global(.adm-search-bar-input-box) {
      background-color: transparent;
    }
  }
  
  .sortToggle {
    border-radius: 20px;
    height: 32px;
    padding: 0 12px;
    font-size: 12px;
    
    :global(.adm-button-content) {
      display: flex;
      align-items: center;
      gap: 4px;
    }
  }
}

.sortBar {
  background-color: #fff;
  padding: 12px 16px;
  border-bottom: 1px solid #f0f0f0;
  
  .sortTitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
  }
  
  .sortButton {
    border-radius: 16px;
    height: 28px;
    padding: 0 12px;
    font-size: 12px;
  }
  
  .clearSortButton {
    border-radius: 16px;
    height: 28px;
    padding: 0 12px;
    font-size: 12px;
    color: #999;
    border-color: #d9d9d9;
  }
}

.content {
  flex: 1;
  overflow: hidden;
}

.playerList {
  padding: 0;
  
  .playerItem {
    padding: 0;
    margin: 0 16px 12px 16px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease;
    
    &:hover {
      box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
      transform: translateY(-1px);
    }
    
    &:last-child {
      margin-bottom: 0;
    }
    
    :global(.adm-list-item-content) {
      padding: 0;
      border-top: none;
    }
  }
}

.playerContent {
  display: flex;
  align-items: center;
  padding: 16px;
  gap: 16px;
}

.playerAvatar {
  flex-shrink: 0;
  
  .avatar {
    border: 2px solid #f0f0f0;
    transition: border-color 0.2s;
    
    &:hover {
      border-color: #1677ff;
    }
  }
}

.playerInfo {
  flex: 1;
  min-width: 0;
  
  .playerName {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .playerDetails {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #999;
    
    .detailIcon {
      font-size: 12px;
    }
  }
}

.playerNumber {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  
  .numberDisplay {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    transition: all 0.2s ease;
    
    &:hover {
      transform: scale(1.05);
      box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
    }
  }
  
  .numberLabel {
    font-size: 10px;
    color: #999;
    margin-top: 4px;
  }
}

.empty {
  padding: 40px 20px;
  
  .emptyContent {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    
    .emptyText {
      font-size: 14px;
      color: #999;
    }
    
    .clearButton {
      border-radius: 20px;
    }
  }
}

.errorContainer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  padding: 20px;
  
  .retryButton {
    margin-top: 16px;
    border-radius: 20px;
  }
}

.loading {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  z-index: 1000;
  
  .loadingText {
    font-size: 14px;
  }
}

// 响应式设计
@media (max-width: 375px) {
  .header {
    padding: 8px 12px;
  }
  
  .sortBar {
    padding: 8px 12px;
  }
  
  .playerItem {
    margin: 0 12px 12px 12px;
  }
  
  .playerContent {
    padding: 12px;
    gap: 12px;
  }
  
  .playerAvatar {
    .avatar {
      :global(.adm-avatar) {
        --size: 40px;
      }
    }
  }
  
  .playerInfo {
    .playerName {
      font-size: 15px;
    }
  }
  
  .playerNumber {
    .numberDisplay {
      width: 40px;
      height: 40px;
      font-size: 16px;
    }
  }
}

// 深色模式支持
@media (prefers-color-scheme: dark) {
  .container {
    background-color: #1a1a1a;
  }
  
  .header {
    background-color: #2a2a2a;
    border-bottom-color: #333;
  }
  
  .sortBar {
    background-color: #2a2a2a;
    border-bottom-color: #333;
  }
  
  .playerItem {
    background-color: #2a2a2a;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    
    &:hover {
      box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    }
  }
  
  .playerInfo {
    .playerName {
      color: #fff;
    }
    
    .playerDetails {
      color: #aaa;
    }
  }
  
  .playerNumber {
    .numberLabel {
      color: #aaa;
    }
  }
}
